package com.jin.webvideo.base.httpclient;

import com.jin.webvideo.util.base.StringUtil;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;

import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.nio.charset.UnsupportedCharsetException;

public class EmptyHttpEntity extends StringEntity {

    public EmptyHttpEntity(ContentType contentType) throws UnsupportedCharsetException {
        super(StringUtil.EMPTY, contentType);
    }

    public EmptyHttpEntity(String mimeType, String charset) throws UnsupportedEncodingException {
        super(StringUtil.EMPTY, mimeType, charset);
    }

    public EmptyHttpEntity(String charset) throws UnsupportedCharsetException {
        super(StringUtil.EMPTY, charset);
    }

    public EmptyHttpEntity(Charset charset) {
        super(StringUtil.EMPTY, charset);
    }

    public EmptyHttpEntity() throws UnsupportedEncodingException {
        super(StringUtil.EMPTY);
    }
}
